Piotr Drąg [Sat, 17 Feb 2018 16:22:50 +0000 (17:22 +0100)]
Update Polish translation
Benjamin Otte [Sat, 17 Feb 2018 06:14:04 +0000 (07:14 +0100)]
vulkan: Keep track of command buffers
Fixes a rather large memleak.
Benjamin Otte [Wed, 14 Feb 2018 01:30:42 +0000 (02:30 +0100)]
cssimage: Get rid of draw vfunc
All remaining users of that vfunc now implement snapshot using cairo
render nodes (win32 and radial).
Also, GtkCssImageClass.snapshot is now NULL, so if a subclass doesn't
implement it, it will now crash.
Previously it would try to call the draw vfunc.
Timm Bäder [Fri, 16 Feb 2018 20:19:04 +0000 (21:19 +0100)]
adwaita: Move searchbar style to box child
This way, we avoid a 1px border at the bottom of the actual searchbar
widget and move it instead to the child of a GtkRevealer. Since we can
now use widgets with 0px height, we finally get rid of the 1px border
that was drawn even if the searchbar child was hidden.
Carlos Garnacho [Fri, 16 Feb 2018 18:31:13 +0000 (19:31 +0100)]
gdk/wayland: Use GDK_AVAILABLE_IN_ALL
GDK_AVAILABLE_IN_4_0 makes it unavailable till 4.0, but we want
it now.
Carlos Garnacho [Fri, 16 Feb 2018 18:25:15 +0000 (19:25 +0100)]
gtksettings: Remove leftover code
The immodule variable is unused
Timm Bäder [Fri, 16 Feb 2018 17:00:06 +0000 (18:00 +0100)]
gl renderer: Increase offscreen texture size
This fixes blurry checkbutton marks in hidpi setups, but breaks button
hover effects. That's another problem.
Timm Bäder [Fri, 16 Feb 2018 16:39:02 +0000 (17:39 +0100)]
textview: Implement measure()
Don't use the current layout size as minimum size anymore, that doesn't
make sense. Also move the code from size_request() from gtk2 into the
now current measure() function.
Piotr Drąg [Fri, 16 Feb 2018 16:14:08 +0000 (17:14 +0100)]
Update POTFILES.in
Emmanuele Bassi [Fri, 16 Feb 2018 12:41:33 +0000 (12:41 +0000)]
Merge branch 'quartz-symbol-not-found' into 'master'
gdkquartz.h: export pasteboard functions
Closes #32
See merge request GNOME/gtk!19
Tom Schoonjans [Fri, 16 Feb 2018 12:16:02 +0000 (12:16 +0000)]
gdkquartz.h: export pasteboard functions
Matthias Clasen [Fri, 16 Feb 2018 02:53:51 +0000 (21:53 -0500)]
Drop unmaintained print backends
The papi and test printbackends have not seen any
maintenance in a long time.
Piotr Drąg [Thu, 15 Feb 2018 23:24:59 +0000 (00:24 +0100)]
Update POTFILES.in
Matthias Clasen [Thu, 15 Feb 2018 23:22:53 +0000 (18:22 -0500)]
Fix the build
This was a mis-merge.
Matthias Clasen [Sat, 11 Nov 2017 01:02:43 +0000 (20:02 -0500)]
Drop non-backend immodules
These are not well integrated, and have not seen any
maintenance in many years.
Bastien Nocera [Thu, 15 Feb 2018 12:29:38 +0000 (13:29 +0100)]
gtkbookmarksmanager: Use GTK+ 3.0's bookmarks file
There's no reason to use a separate file until the format of the file
changes though, as this just means that GTK+ 3.x and GTK+ 4.x
applications would end up showing different bookmarks in the file
chooser.
https://bugzilla.gnome.org/show_bug.cgi?id=793425
Emmanuele Bassi [Thu, 15 Feb 2018 12:58:56 +0000 (12:58 +0000)]
Merge branch 'ci-cache-subprojects' into 'master'
gitlab-ci: cache meson subprojects
See merge request GNOME/gtk!17
Christoph Reiter [Thu, 15 Feb 2018 12:37:02 +0000 (13:37 +0100)]
gitlab-ci: cache meson subprojects
This saves another 30sec here and reducing clone operations on the
gnome gitlab instance is probably a good idea as well.
Emmanuele Bassi [Thu, 15 Feb 2018 11:28:43 +0000 (11:28 +0000)]
Update the wrap file for GLib
Point to the right repo, now that GLib is on GitLab, instead of relying
on the redirection.
Carlos Soriano [Thu, 15 Feb 2018 09:10:18 +0000 (10:10 +0100)]
gtkplacessidebar: Rename favorites to starred
To have more consistency in the name. The same was done in Nautilus in
commit https://gitlab.gnome.org/GNOME/nautilus/commit/
27b039b37c1149fc8abbef6a683dd939e6f2bf1f.
Piotr Drąg [Thu, 15 Feb 2018 03:29:36 +0000 (04:29 +0100)]
Update POTFILES.in
Matthias Clasen [Thu, 15 Feb 2018 03:07:54 +0000 (03:07 +0000)]
Merge branch 'master' into 'master'
calendar: Use the new "%OB" format in strftime()
Closes #9
See merge request GNOME/gtk!10
Matthias Clasen [Thu, 15 Feb 2018 03:06:28 +0000 (03:06 +0000)]
Merge branch 'wip/issue-21' into 'master'
Mention gtk_button_set_image() and friends in the migration docs
Closes #21
See merge request GNOME/gtk!6
Matthias Clasen [Thu, 15 Feb 2018 03:01:43 +0000 (03:01 +0000)]
Merge branch 'wip/carlosg/imwayland' into 'master'
modules: Add wayland IM implementation
See merge request GNOME/gtk!4
Matthias Clasen [Thu, 15 Feb 2018 02:58:16 +0000 (02:58 +0000)]
Merge branch 'issue-2' into 'master'
Update the configuration options
Closes #2
See merge request GNOME/gtk!11
Emmanuele Bassi [Wed, 14 Feb 2018 23:38:58 +0000 (23:38 +0000)]
Merge branch 'gitlab-ci-docker' into 'master'
Add gitlab-ci support using a prebuilt docker image
See merge request GNOME/gtk!7
Christoph Reiter [Tue, 13 Feb 2018 16:21:18 +0000 (17:21 +0100)]
Add gitlab-ci support using a prebuilt docker image
Emmanuele Bassi [Wed, 14 Feb 2018 15:51:45 +0000 (15:51 +0000)]
Rewrite toarray Perl script to Python
We don't need to shell out to Perl to generate a C array out of a text
file.
Emmanuele Bassi [Wed, 14 Feb 2018 14:07:22 +0000 (14:07 +0000)]
build: Rename last 'enable' options
Drop the 'enable-' prefix to conform to the best practices for naming
configuration options in Meson.
Emmanuele Bassi [Wed, 14 Feb 2018 14:04:04 +0000 (14:04 +0000)]
build: Rename GDK backend options
Drop the 'enable-' prefix, and always enable all platform-specific
backends. We can disable them depending on the platform. This way,
the documentation printed by `meson configure` remains accurate.
Emmanuele Bassi [Wed, 14 Feb 2018 13:55:32 +0000 (13:55 +0000)]
build: Coalesce print backends options into one
Instead of having separate options for each print backend, we can use
the same approach as the input method modules: a single option, with a
comma-separated list of print backends.
Emmanuele Bassi [Wed, 14 Feb 2018 13:45:48 +0000 (13:45 +0000)]
build: Rename the 'enable-colord' option
Drop the 'enable-' prefix, to follow the naming best practices for Meson
configuration options.
Emmanuele Bassi [Wed, 14 Feb 2018 13:43:19 +0000 (13:43 +0000)]
build: Rename 'with-included-immodules' option
We can call it 'included-immodules', and simplify its logic by always
attempting to split the value, to avoid turning an array into a string
and then back into an array again.
Emmanuele Bassi [Wed, 14 Feb 2018 13:35:38 +0000 (13:35 +0000)]
build: Rename 'disable-modules' option
We should not have 'disable' in the name, to conform with the Meson best
practices for boolean options.
Emmanuele Bassi [Wed, 14 Feb 2018 11:15:31 +0000 (11:15 +0000)]
x11: Do not include fallback-c89.c
We're definitely using a C99-compliant toolchain, if we're building the
X11 backend.
Rafal Luzynski [Sat, 10 Feb 2018 13:07:56 +0000 (14:07 +0100)]
calendar: Use the new "%OB" format in strftime()
Due to the recent changes introduced in glibc 2.27 "%OB" is the
correct format to obtain a month name as used in the calendar
header. The same rule has been working in BSD family (including
OS X) since 1990s. This change is simple but makes GTK+ 4.x require
glibc >= 2.27. If this requirement cannot be fulfilled then we must
cherry-pick the full commit
cbf118c from gtk-3-22 branch.
Closes: #9
Mart Raudsepp [Tue, 13 Feb 2018 22:20:41 +0000 (22:20 +0000)]
Update Estonian translation
(cherry picked from commit
97f3a4397a0cc4bb83d50edab9411d5bcfd8eaea)
Mart Raudsepp [Tue, 13 Feb 2018 20:14:22 +0000 (20:14 +0000)]
Update Estonian translation
(cherry picked from commit
af2d0397171005342ac6f9d42d9febf981145849)
Timm Bäder [Tue, 13 Feb 2018 17:31:35 +0000 (18:31 +0100)]
cssprovider: Remove priv pointer
Timm Bäder [Mon, 12 Feb 2018 10:13:17 +0000 (11:13 +0100)]
menu: Remove an incorrect comment
They are not missing, they are snapshot when chaining up.
Emmanuele Bassi [Tue, 13 Feb 2018 17:03:08 +0000 (17:03 +0000)]
Merge branch 'bump-glib-dep' into 'master'
meson: Require glib 2.55.0
See merge request GNOME/gtk!8
Christoph Reiter [Tue, 13 Feb 2018 17:00:27 +0000 (18:00 +0100)]
meson: Require glib 2.55.0
gtk+ has started using g_file_load_bytes() which is available
since glib 2.55.0
Carlos Garnacho [Thu, 30 Nov 2017 17:53:26 +0000 (18:53 +0100)]
modules: Add wayland IM implementation
This IM context implementation goes through the gtk-text-input protocol,
leaving up to the compositor the actual interaction with IM engines.
Carlos Garnacho [Tue, 13 Feb 2018 13:28:44 +0000 (14:28 +0100)]
gdk/wayland: Add GdkDisplay call to query available globals
The internal known_globals hashtable is used to carry accounting for
interfaces that depend on others (as ordering is not guaranteed), extend
its usage so it also keeps track of unimplemented interfaces (here at
least).
The API call will then use this to allow querying the globals offered by
the compositor, it will be useful to determine whether we can use
text-input protocols or should fallback to other IMs.
Emmanuele Bassi [Tue, 13 Feb 2018 12:57:18 +0000 (12:57 +0000)]
Mention gtk_button_set_image() and friends in the migration docs
The image-related API for GtkButton has been dropped, but still needs
to be mentioned in the migration guide.
Closes: #21
Benjamin Otte [Tue, 13 Feb 2018 09:32:22 +0000 (10:32 +0100)]
x11: Run event filters on all windows
The event filters that were split out in commit
65beb0fc222662028b969085bb6e6cc30f263e10 need to be run for every event
window and not just for the root window.
Benjamin Otte [Sat, 10 Feb 2018 18:27:35 +0000 (19:27 +0100)]
treemenu: Remove unused defines
Emmanuele Bassi [Mon, 12 Feb 2018 17:16:51 +0000 (17:16 +0000)]
Disable CI
The CI runner is pretty slow to set up (takes about 6 minutes to get
through the system dependencies needed to build GTK), and does not work
with dependencies as subprojects.
Until we figure out how to make it work, and make it work a bit faster,
we should drop CI and rely on Continuous for a while longer.
We can revert this commit as soon as we find out how to make things
work.
Emmanuele Bassi [Mon, 12 Feb 2018 17:04:57 +0000 (17:04 +0000)]
ci: Update the vulkan build option
Emmanuele Bassi [Mon, 12 Feb 2018 16:57:17 +0000 (16:57 +0000)]
Add GitLab CI (build only)
Emmanuele Bassi [Mon, 12 Feb 2018 16:35:56 +0000 (16:35 +0000)]
Drop method annotation for gtk_drag_cancel()
The other method annotations were removed in commit
c306e448b32e.
There is no introspected ABI change, as g-ir-scanner would just ignore
the annotation.
This eliminates the last warning when building GTK on Linux.
Emmanuele Bassi [Mon, 12 Feb 2018 14:22:06 +0000 (14:22 +0000)]
build: Allow using introspection from subprojects
When building dependencies as subprojects we need to tell the
introspection scanner where to find the introspection data; this
means using GIR targets from the subproject.
Alban Browaeys [Sun, 20 Jan 2013 22:45:17 +0000 (23:45 +0100)]
Fix overzalous method annotations for drag and drop
Functional revert of commit
9c4892f2915.
Fixes introspection scanner warnings like:
Warning: Gtk: gtk_drag_finish: Methods must belong to the same
namespace as the class they belong to
That is, the gtk_drag_* functions cannot be methods as they have a
"GdkDragContext" as the instance parameter, and that is not a valid
type for the Gtk namespace.
This is not an introspected ABI change, as the generated introspection
data ignores the annotation.
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
https://bugzilla.gnome.org/show_bug.cgi?id=692152
Emmanuele Bassi [Sun, 11 Feb 2018 16:42:46 +0000 (16:42 +0000)]
build: Use GIR targets for built introspection data
Instead of using `--include-uninstalled` in the scanner arguments, we
can tell Meson to use an introspection target, and it'll do the
appropriate thing for us.
Emmanuele Bassi [Sun, 11 Feb 2018 16:42:09 +0000 (16:42 +0000)]
Bump up the dependency on Meson
We're going to use a new argument in the generate_gir() function.
Mart Raudsepp [Mon, 12 Feb 2018 00:38:59 +0000 (00:38 +0000)]
Update Estonian translation
(cherry picked from commit
8dc234717efc1f52f6d78ce3c5f9391f45047955)
Matthias Clasen [Sun, 11 Feb 2018 00:41:31 +0000 (00:41 +0000)]
gdk: Add some more docs
Add another reference to the docs.
Matthias Clasen [Sat, 10 Feb 2018 23:46:14 +0000 (23:46 +0000)]
gdk: Expand the docs a bit
Add a reference to the getter to the GdkKeymap::direction-changed
signal docs.
sh: indent: command not found
Emmanuele Bassi [Fri, 9 Feb 2018 19:36:00 +0000 (19:36 +0000)]
docs: Mention G_ENABLE_DIAGNOSTIC in the porting notes
Since part of our type system is resolved at run time, we need to use
run time facilities to get diagnostic messages, like deprecation
warnings for properties and signals.
We should mention the G_ENABLE_DIAGNOSTIC environment variable in the
migration guide, to let developers know how to catch deprecations and
changes while porting their code.
Timm Bäder [Tue, 26 Sep 2017 05:10:39 +0000 (07:10 +0200)]
menu: Guard against NULL toplevel
This can happen, as indicated by GtkMenu explicitly connecting to
::destroy of its toplevel window. Do the same thing in GtkComboBox.
Timm Bäder [Wed, 7 Feb 2018 19:08:19 +0000 (20:08 +0100)]
box: Remove an unnecessary include
Timm Bäder [Wed, 7 Feb 2018 19:03:25 +0000 (20:03 +0100)]
box: Rename private pointers to "priv"
Which is the style we use everywhere else.
Timm Bäder [Tue, 6 Feb 2018 22:58:06 +0000 (23:58 +0100)]
box: Simplify size_allocate
Stop looking at the box allocation position since both x and y are 0.
Timm Bäder [Tue, 6 Feb 2018 21:19:30 +0000 (22:19 +0100)]
box: Use widget child list when computing size request
Contrary to what the comments in this function might suggest, it does
not actually do anything about child positions, child child sizes. So,
packing doesn't matter and we don't need to iterate over all child
widgets twice.
Timm Bäder [Tue, 6 Feb 2018 21:11:01 +0000 (22:11 +0100)]
box: Use widget child list in compute_size_for_orientation
And remove the non-NULL checks for minimum_size and natural_size since
these are non-NULL by definition since this function is only called from
measure().
Benjamin Otte [Fri, 9 Feb 2018 00:06:59 +0000 (01:06 +0100)]
inspector: Remove gtk.h include
Benjamin Otte [Fri, 9 Feb 2018 00:02:06 +0000 (01:02 +0100)]
a11y: Remove gtk.h include from iconview header
Benjamin Otte [Thu, 8 Feb 2018 23:58:59 +0000 (00:58 +0100)]
a11y: Remove gtk.h include from lockbutton
Benjamin Otte [Thu, 8 Feb 2018 23:56:26 +0000 (00:56 +0100)]
a11y: Remove gtk/h include from menu header
Benjamin Otte [Thu, 8 Feb 2018 23:52:44 +0000 (00:52 +0100)]
a11y: Remove gtk.h include from listbox headers
Benjamin Otte [Thu, 8 Feb 2018 23:47:58 +0000 (00:47 +0100)]
a11y: Remove gtk.h from flowbox includes
Benjamin Otte [Thu, 8 Feb 2018 23:42:38 +0000 (00:42 +0100)]
a11y: Remove gtk.h include from container accessible
Benjamin Otte [Thu, 8 Feb 2018 22:39:17 +0000 (23:39 +0100)]
a11y: Remove gtk.h include
Benjamin Otte [Thu, 8 Feb 2018 13:39:45 +0000 (14:39 +0100)]
a11y: Don't include gtk.h
Also add missing includes and sort them for all the widgets that relied
on that before.
Emmanuele Bassi [Thu, 8 Feb 2018 14:10:20 +0000 (14:10 +0000)]
docs: Link to the compiler requirements wiki page
From the README file.
Emmanuele Bassi [Thu, 8 Feb 2018 14:11:12 +0000 (14:11 +0000)]
Rename the project's DOAP file
We need its name to match the repository's name.
Benjamin Otte [Thu, 8 Feb 2018 05:15:10 +0000 (06:15 +0100)]
shortcuts: Don't include gtk.h
Clean up all shortcuts includes to only include the necessary files
while we're at it.
Benjamin Otte [Thu, 8 Feb 2018 03:31:05 +0000 (04:31 +0100)]
pointerfocus: Don't include gtk.h
Also fix up gtktypes.h to include the required glib.h for G_BEGIN_DECLS
and gtkdnd.c to include missing includes.
Matthias Clasen [Wed, 7 Feb 2018 20:13:31 +0000 (15:13 -0500)]
Drop event filters from the docs
No longer public API.
Matthias Clasen [Wed, 7 Feb 2018 05:00:01 +0000 (00:00 -0500)]
Remove gdk_window_add_filter
Drop the public filtering API. The x11 backend already has
the ::xevent signal as replacement. The win32 backend needs
a similar signal to replace filtering.
Reshuffle header inclusions in the x11 backend a little bit
to avoid a cyclic inclusion between gdkprivate-x11.h and
gdkdisplay-x11.h that is otherwise causing problems.
Matthias Clasen [Wed, 7 Feb 2018 03:10:43 +0000 (22:10 -0500)]
x11: Don't use gdk_window_add_filter
This function is going away.
Emmanuele Bassi [Wed, 7 Feb 2018 15:01:25 +0000 (15:01 +0000)]
docs: Update header rules in the coding style
- Make the rules for including headers explicit
- Make the symbol visibility rules explicit, and drop the
old "leading underscore" hack
- Drop Private data structure declarations and priv pointers
from public headers
- Mention G_DECLARE_* macros
- Mention `#pragma once`
Timm Bäder [Tue, 6 Feb 2018 10:49:23 +0000 (11:49 +0100)]
cellrendereraccel: unref sizing_label
Timm Bäder [Tue, 6 Feb 2018 10:26:47 +0000 (11:26 +0100)]
build: install gsk-autocleanup.h
Timm Bäder [Tue, 6 Feb 2018 08:19:02 +0000 (09:19 +0100)]
gl renderer: Check the scale factor for every render
This way we pick up changes in the GdkWindow's scale_factor.
Timm Bäder [Mon, 5 Feb 2018 10:52:32 +0000 (11:52 +0100)]
demo: Remove an expose_event mention
Timm Bäder [Mon, 5 Feb 2018 10:16:25 +0000 (11:16 +0100)]
notebook: Remove another event type check
Just like
3d65019e98dabc0e2f443d981590983e618dda44, but for release
events.
Timm Bäder [Mon, 5 Feb 2018 09:38:37 +0000 (10:38 +0100)]
separatormenuitem: Don't create label widget in get_label
Calling gtk_menu_item_get_label on a GtkSeparatorMenuItem would
otherwise create a GtkLabel child, increasing the vertical size request
to that of the child label.
Matthias Clasen [Mon, 5 Feb 2018 19:34:03 +0000 (20:34 +0100)]
Drop a leftover declaration
The function gdk_add_option_entries does not exist anymore.
Matthias Clasen [Mon, 5 Feb 2018 19:28:15 +0000 (20:28 +0100)]
Make gdk_event_get_history public
This function is meant to be public, but was missing
an annotation in the header.
Matthias Clasen [Mon, 5 Feb 2018 19:26:19 +0000 (20:26 +0100)]
gdk: Drop gdk_x11_window_set_frame_extents
This function is unused and has been deprecated
for a long time.
Matthias Clasen [Mon, 5 Feb 2018 19:24:40 +0000 (20:24 +0100)]
fix the docs build
The GtkPlacesSidebar does not exist anymore in public API.
Matthias Clasen [Mon, 5 Feb 2018 19:13:20 +0000 (20:13 +0100)]
The big versioning cleanup
Remove all the old 2.x and 3.x version annotations.
GTK+ 4 is a new start, and from the perspective of a
GTK+ 4 developer all these APIs have been around since
the beginning.
Matthias Clasen [Mon, 5 Feb 2018 12:56:52 +0000 (13:56 +0100)]
gdk: Add some missing autocleanup definitions
Best to be consistent.
Matthias Clasen [Mon, 5 Feb 2018 12:46:28 +0000 (13:46 +0100)]
gsk: Add autocleanup definitions
This may be useful for applications using render nodes.
Piotr Drąg [Mon, 5 Feb 2018 16:54:21 +0000 (17:54 +0100)]
Update POTFILES.in
Benjamin Otte [Mon, 5 Feb 2018 16:21:46 +0000 (17:21 +0100)]
tests: Make text test have more glyphs
Load random strings from /usr/share/dict/words instead of reusing the
same 10 words all the time. That way, we get closer to the real world
use case of having a full alphabet.
Benjamin Otte [Mon, 5 Feb 2018 16:20:17 +0000 (17:20 +0100)]
cssprovider: Use g_file_load_bytes()
This way, we get a special no-copy case for resources.
https://bugzilla.gnome.org/show_bug.cgi?id=790270
Carlos Garnacho [Mon, 5 Feb 2018 15:10:58 +0000 (16:10 +0100)]
docs: Rename right get_history() call on GDK docs
Obviously gdk_device_get_history() is not the right function to change. To
delete if anything...
Carlos Garnacho [Mon, 5 Feb 2018 14:59:40 +0000 (15:59 +0100)]
gdk: Rename gdk_event_get_history() to get_motion_history()
It only applies to GDK_MOTION_NOTIFY events, so this is a more descriptive
name. Also add Since tag in docs, and GDK_AVAILABLE_IN_3_94.